package cn.wolfcode.car.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class Employee {

    public static final Integer STATUS_FREEZE = 1;//冻结
    public static final Integer STATUS_UNFREEZE = 0;//正常

    /** */
    private Long id;

    /** */
    private String name;

    /** */
    private String email;

    /** */
    private Integer age;

    private Integer sex;            // 性别 0 男性, 1 女性

    /** */
    private Integer admin;          // 是否超管

    /** */
    private Integer status = Employee.STATUS_UNFREEZE;         // 是否冻结 1 表示冻结

    /** */
    private Long deptId;            // 部门 id
    private Department department;

    /** */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date hiredate;          //入职时间

}